
let extension = {
    components: {//动态扩充组件或组件路径
        //表单header、content、footer对应位置扩充的组件
        gridHeader: '',//{ template: "<div>扩展组xx件</div>" },
        gridBody: '',
        gridFooter: '',
        //弹出框(修改、编辑、查看)header、content、footer对应位置扩充的组件
        modelHeader: '',
        modelBody: '',
        modelFooter: ''
    },
    buttons: { view: [], box: [], detail: [] },//扩展的按钮
    methods: {//事件扩展
        onInit () {
            this.columns.push(
                {
                    field: '',
                    title: '操作',
                    type: 'int',
                    fixed: 'right',
                    align: 'left',
                    render: (h, { row, c, index }) => {
                        return [
                            h('el-button', {
                                props: {
                                    type: 'text', size: 'mini',
                                },
                                on: {
                                    click: (e) => {
                                        let pathInfo = this.$router.resolve({
                                            path: "/HallSeat",
                                            query: {
                                                timeId: row.Id,
                                                venue: row.venue
                                            },
                                        });
                                        window.open(pathInfo.href, "_blank");
                                    },
                                }
                            }, '区域管理')]
                    }
                })
            // this.detail.columns.push(
            //     {
            //         field: '',
            //         title: '操作',
            //         type: 'int',
            //         fixed: 'right',
            //         align: 'left',
            //         render: (h, { row, c, index }) => {
            //             return [
            //                 h('el-button', {
            //                     props: {
            //                         type: 'text', size: 'mini',
            //                     },
            //                     on: {
            //                         click: (e) => {
            // let pathInfo = this.$router.resolve({
            //     path: "/HallSeat",
            //     query: {
            //         timeId: row.timeId,
            //         c_studio_district_name: row.c_studio_district_name
            //     },
            // });
            // window.open(pathInfo.href, "_blank");
            //                         },
            //                     }
            //                 }, '座位管理')]
            //         }
            //     })
        },
        rowClick ({ row, column, event }) { //查询界面table点击行选中当前行
            this.$refs.table.$refs.table.toggleRowSelection(row);
            return true;
        },
    }
};
export default extension;